package com.java83.controller;

import com.java83.entity.RbacManager;
import com.java83.entity.RbacRole;
import com.java83.service.RbacRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/role")
public class RbacRoleController {
    @Autowired
    RbacRoleService rbacRoleService;
    @RequestMapping("/findAll")
    public List<RbacRole> findAllRole(@RequestBody RbacManager rbacManager){
       return rbacRoleService.findAll(rbacManager);
    }
}
